import request from '@/utils/request'

export function searchPosts(keyword, page = 0, size = 10) {
  return request({
    url: '/search/posts',
    method: 'get',
    params: { keyword, page, size }
  })
}

export function searchClubs(keyword, page = 0, size = 10) {
  return request({
    url: '/search/clubs',
    method: 'get',
    params: { keyword, page, size }
  })
}

export function searchComments(keyword, page = 0, size = 10) {
  return request({
    url: '/search/comments',
    method: 'get',
    params: { keyword, page, size }
  })
} 